<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<t:base type="jquery,easyui,tools"/>
<div class="easyui-layout" fit="true">
    <div region="center" style="padding:1px;">
        <t:datagrid name="ccourseList" title=""
                    actionUrl="ccourseController.do?datagrid_courseOrder" idField="id" fit="true"
                    queryMode="group">
            <t:dgCol title="id" field="id" hidden="true"></t:dgCol>
            <t:dgCol title="订单号" field="orderSn" width="1"></t:dgCol>
            <t:dgCol title="课程名称" field="courseEntity.name" width="1"></t:dgCol>
            <t:dgCol title="用户" field="customerEntity.realname" width="1"></t:dgCol>
            <t:dgCol title="订单价格" field="orderPrice" width="1"></t:dgCol>
            <t:dgCol title="支付价格" field="payPrice" width="1"></t:dgCol>
            <t:dgCol title="支付方式" field="payType" dictionary="payType" width="1"></t:dgCol>

            <t:dgCol title="common.operation" field="opt" width="1"></t:dgCol>
            <t:dgFunOpt title="评价信息" funname="showComment(id,orderSn)"></t:dgFunOpt>
        </t:datagrid>
    </div>
</div>
<script type="text/javascript">
    function showComment(id, orderSn) {
        var title = orderSn;
        var url = "ccourseController.do?courseCommentIndex&courseId=" + id;
        createwindow(title, url, window.innerWidth, window.innerHeight);
    }
</script>

